﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace nl.tno.ict.multitouch.wpfmultitouch
{
    public class BlackSpotFilter
    {
        public Point p { get; set; }        
        public double radius { get; set; }

        public bool CheckFilter(Point newPoint)
        {
            double x = Math.Pow(Math.Abs(newPoint.X - p.X),2);
            double y = Math.Pow(Math.Abs(newPoint.Y - p.Y),2);
            double dis = Math.Sqrt(x + y);
            return (dis < radius);             
        }
    }
}
